package com.usian.service;

import com.usian.mapper.UserMapper;
import com.usian.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper userMaapper;


    @Override
    public Users getUser(Integer id) {
        //return new User(id,"王粪堆",18);
        return null;
    }

    @Override
    public List<Users> findAll() {
        return userMaapper.findAll();
    }

}
